<?php
/**
 * Created by PhpStorm.
 * User: User
 * Date: 2017/10/30
 * Time: 18:29
 */

class parentClass
{

}

class demo extends parentClass{

}
//返回对象的父类名
$demo = new demo();
var_dump(get_parent_class($demo));